package com.ziyueyuwen.xiniao.dao;

import com.ziyueyuwen.xiniao.bean.subscription.ZySubscriptionMsgDO;

import java.util.List;

/**
 * @author jun 2019/1/7
 */
public interface ZySubscriptionMsgMapper {

    /**
     * 添加数据
     *
     * @param tsSubscriptionMsg ZySubscriptionMsgDO
     * @return Boolean
     */
    Boolean add(ZySubscriptionMsgDO tsSubscriptionMsg);

    /**
     * 获取eeo 用户id 和手机号
     *
     * @return List<ZySubscriptionMsgDO>
     */
    List<ZySubscriptionMsgDO> listUidAndUserId();

    List<ZySubscriptionMsgDO> listUserAccountAndUserId(Integer eeoClassId);

    /**
     * 获取课节汇总数据
     *
     * @return List<ZySubscriptionMsgDO>
     */
    List<ZySubscriptionMsgDO> listEndData();

    /**
     * 通过id获取相关数据
     * @param id
     * @return
     */
    ZySubscriptionMsgDO getByPreKey(Integer id);

    /**
     * 获取课节结束的数据
     * @param eeoClassId
     * @return
     */
    ZySubscriptionMsgDO getEndMsg(Integer eeoClassId);

}
